#include "my_head.h"

bool Shownode(p_flight_node head)
{
    int i=1;
    if(head==NULL)
    {
        printf("error\n");
        return false;
    }
    p_flight_node p=head->next;
    while(p!=NULL)
    {
        printf("%d号航班号信息:%s\n",i,p->data.flight_Number);
        printf("%d号航班机型信息:%s\n",i,p->data.aircraft_Model);
        printf("%d号航班预计起飞时间信息:%s\n",i,p->data.departure_Time);
        printf("%d号航班预计降落时间信息:%s\n",i,p->data.arrival_Time);
        printf("%d号航班班期信息:%s\n",i,p->data.flight_Schedule);
        printf("%d号航班起飞机场信息:%s\n",i,p->data.departure_Airport);
        printf("%d号航班目的机场信息:%s\n",i,p->data.arrival_Airport);
        printf("===============\n");
        p=p->next;
        i++;
    }
    return true;
}